const app = getApp();
Page({
  data: {
    is_login:false,
    year:'',
    month:'',
    list:[],
    rece_sum:0.00,
    pay_sum:0.00,
    index_bg_img:wx.getStorageSync('index_bg_img'),
  },

  onShow:function(){
    this.getUserInfo(); //获取用户信息
  },

  onLoad:function(e){

  },

  
  //获取个人信息
  getUserInfo:function(){
    let _this = this;
    app._post('api/member/getUserInfo', {}, function(result) {
      if(result.code == 200){
        
      }else{
        wx.navigateTo({
          url: '/pages/auth/auth'
        })
      }
    });
  },


  //前往银行卡列表
  card_list:function(e){
    console.log(e);
    let _this = this,
      card_type = e.currentTarget.dataset.cardtype;
    wx.navigateTo({
      url: './card_list?cardtype'+card_type
    })
  },
})